home *** CD-ROM | disk | FTP | other *** search
/ Network CD 1 / Network CD.iso / converters / pbmplus / doc / ppmtorast.doc < prev    next >
Encoding:
Text File  |  1990-06-20  |  1.9 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ppmtorast(1)                PBM Plus                 ppmtorast(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      ppmtorast - convert a portable pixmap into a Sun raster file
  10.  
  11. SYNOPSIS
  12.      ppmtorast [-s] [-x] [ppmfile]
  13.  
  14. DESCRIPTION
  15.      Reads a portable pixmap as input.  Produces a Sun raster
  16.      file as output.  NOTE: since it uses Sun-specific include
  17.      files and libraries, ppmtorast will compile only on Suns.
  18.  
  19.      Color values in Sun raster files are eight bits wide, so
  20.      ppmtorast will automatically scale colors to have a maxval
  21.      of 255.  An extra ppmcscale step is not necessary.
  22.  
  23.      The -s flag forces the result to be in RT_STANDARD form;
  24.      otherwise, it defaults to RT_BYTE_ENCODED, which is smaller
  25.      but, well, less standard.
  26.  
  27.      The -x flag has to do with the color map.  Normally,
  28.      ppmtorast attempts to rearrange or add to the colormap so
  29.      that white is in slot 0 and black is in slot 1 -- the stan-
  30.      dard Sun default colormap.  However, if you are doing
  31.      screenloads from within Xsun, on a CG2, you want the oppo-
  32.      site -- black in slot 0 and white in slot 1.  (Why would you
  33.      be doing something this silly?  Well, I have sometimes found
  34.      it useful.) So, the -x flag sets this.
  35.  
  36.      The pbmtorast filter is significantly faster if your images
  37.      are just black and white.
  38.  
  39. SEE ALSO
  40.      rasttoppm(1), ppm(5), pbmtorast(1), rasttopbm(1)
  41.  
  42. AUTHOR
  43.      Copyright (C) 1989 by Jef Poskanzer.
  44.  
  45.      Permission to use, copy, modify, and distribute this
  46.      software and its documentation for any purpose and without
  47.      fee is hereby granted, provided that the above copyright
  48.      notice appear in all copies and that both that copyright
  49.      notice and this permission notice appear in supporting docu-
  50.      mentation.  This software is provided "as is" without
  51.      express or implied warranty.
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Printed 5/25/90           31 March 1989                         1
  64.  
  65.  
  66.  
  67.